export type CateType = Array<CateTypeInfo>
export type CateTypeInfo = {
  id: string,
  name: string,
  icon: string,
  child: Array<CateChildType>
}
export type CateChildType=Omit<CateTypeInfo, 'id'|'child'> & { classify_id: string,cateid:string }

export type CateConfig = {
  cateid: string,
  name: string,
  classify_id: string,
  prompt: string,
  description:string,
  list: Array<CateConfigInfo>
}
export type CateConfigInfo={
  id: string
  name: string,
  title: string,
  subtitle: string,
  tips: string,
  must: string,
  type: string
  option: string,
  placeholder: string
}

export type FilesType = {
  // fileid: string | number
  count: number,
  list: Array<FliesInfo>
}
export type FliesInfo={
  id: string
  name: string, num: string, update: string
}

export type AddFile = {
  fileid: string
}
export type RecordType = {
  record_id: string
}

export type GetRecordType = {
  record_id: string,
  record:{ create: string, update: string, record: string }
}

/**get token pram  */
export type ReqTokenParam={
  promt_type:string,
  promt:string,
  num:string,
  fileid:string
  cateid:string
}

export type ResGetToken={
  id:string
  timestamp:number
  nonce:string
  sign:string
}